//
//  M_Fuli.m
//  suRead
//
//  Created by Kobe LI on 16/4/28.
//  Copyright © 2016年 bao. All rights reserved.
//

#import "M_Fuli.h"

@implementation M_Fuli

+ (NSDictionary *)JSONKeyPathsByPropertyKey
{
    return @{
             @"f_url": @"url",
             @"f_fuliname": @"fuliname",
             @"f_jifen": @"jifen",
             @"f_fuli_img": @"fuli_img",
             @"f_fxDec":@"fx_dec",
             @"f_fxImg":@"fx_img"
             };
}

+ (NSValueTransformer *)f_jifenJSONTransformer {
    
    return [MTLValueTransformer transformerUsingForwardBlock:^(NSString *id_, BOOL *success, NSError **error){
        
        if (!id_) {
            return @0;
        }
        
        return @([id_ integerValue]);
    }];
}

@end
